package com.jyy.prefabricated.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 题库信息
 */
@Data
public class QuestionBankVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 题库分类
     */
    private Integer categoryId;

    /**
     * 题库类型
     */
    private Integer type;

    /**
     * 题库名称
     */
    private String name;

    /**
     * 是否收藏
     */
    private Boolean hasCollection;

    /**
     * 题目数量
     */
    private Long questionCount;

    /**
     * 租户编码
     */
    private String teamCode = BaseTeamEnum.BASE.getValue();

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;



}